<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="xm"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link type="text/css" rel="stylesheet" href="<%=request.getContextPath() %>/css/backnav.css">
<link type="text/css" rel="stylesheet" href="<%=request.getContextPath() %>/css/admin.css">
<link type="text/css" rel="stylesheet" href="<%=request.getContextPath() %>/css/adminmerchandiseDetail.css">
<script type="text/javascript">
	function updateSuc(){
		alert("修改成功");
	}
	function updateSuc1(){
		alert("是否返回");
	}
	
</script>
</head>
<body>
 	<div id="top">
 		<jsp:include page="/comm/backTop.jsp"></jsp:include>
 	</div>
    <div id="left">
        <jsp:include page="/comm/backnav.jsp"></jsp:include>
    </div>
    <div id="right">
        <div class="right">
		 	 <div class="main">
	 	       	<form action="<%=request.getContextPath() %>/adminFilter/admin_merchandise?m=merUpdate" method="post" enctype="multipart/form-data">
		 		
		 		 <table border="3">
		 		 <tr>
		 	 	 	<td class="td-th" colspan="3">修改商品信息</td>			
		 	 	 </tr>
		 		 <tr>
                     <td class="td-left">商品ID：</td>
                     <td colspan="2"><input value="${merModel.id }" name="id" readonly="readonly"> </td>
               	  </tr>
 					<tr>
                     <td class="td-left">商品类别：</td>
                     <td colspan="2"><input value="${merModel.category }" name="category"> </td>
               	  </tr>
                  	<tr>
                     <td class="td-left">商品名称：</td>
                     <td colspan="2"><input value="${merModel.merName }" name="merName"> </td>
               	  </tr>
                 	 <tr>
                     <td class="td-left">商品价格：</td>
                     <td colspan="2">¥<input value="${merModel.price }" name="price"> </td>
             	 </tr>
                  <tr>
                     <td class="td-left">商品品牌：</td>
                     <td colspan="2"><input value="${merModel.merModel }" name="merModel"> </td>
                  </tr>           
                  <tr>
                     <td class="td-left">商品介绍：</td>
                     <td colspan="2">
                     	<!-- <input value="${merModel.merDesc }" name="merDesc">  -->
                     	<textarea rows="8" cols="100" name="merDesc">${merModel.merDesc }</textarea>
                     </td>
                  </tr>
                  <tr>
                     <td class="td-left">厂商：</td>
                     <td colspan="2"><input value="${merModel.manufacturer }" name="manufacturer"> </td>
                  </tr>
                  <tr>
                     <td class="td-left">出厂日期：</td>
                     <td colspan="2"><input value="${merModel.leaveFactoryDate }" name="leaveFactoryDate"> </td>
                  </tr>
                  <tr>
                     <td class="td-left">是否特价：</td>
                     <td colspan="2"><input value="${merModel.special }" name="special"> </td>
                  </tr>
                  <tr>
                     <td class="td-left">特价：</td>
                     <td colspan="2">¥<input value="${merModel.sprice }" name="sprice"> </td>
                  </tr>
                   <tr>
                     <td class="td-left">图片 </td>
                    
                     <td> <input value="${merModel.picture }" name="picture" readonly="readonly"></td>
                     <td><input type="file" id="file" name="file"/> </td> 
                     
                  </tr> 
		 	 	</table>
		 	 	<div class="saveDiv">
		 	 		<button onclick="updateSuc()">保存</button>	
		 	 		&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
		 	 		<button onclick="updateSuc1()">返回</button>
		 	 	</div>
		 	   </form>
	 	 	
		 	 </div>	 
        </div>
    </div>
</body>
</html>
